package com.sharding.jdbc.service.Impl;

import com.sharding.jdbc.bean.User;
import com.sharding.jdbc.mapper.UserMapper;
import com.sharding.jdbc.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * description: UserServiceImpl
 * date: 2020/5/5 0005 9:16
 * author: xiayz
 * version: 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public void save(User address) {
        userMapper.save(address);
    }

    @Override
    public User get(Long id) {
        return userMapper.get(id);
    }

    @Override
    public List<User> pagingUser(Map<String, Object> params) {
        return userMapper.pagingUser(params);
    }
}
